package com.dwd.servicemanager.service;

import com.dwd.basic.service.IBaseService;
import com.dwd.basic.utils.PageBean;
import com.dwd.servicemanager.pojo.Product;
import com.dwd.servicemanager.pojo.dto.ProductDto;
import com.dwd.servicemanager.query.ProductQuery;

import java.util.List;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/21 15:22
 * @Version 1.0
 */
public interface IProductService extends IBaseService<Product> {
    /**
     * 上架
     * @param id
     */
    void up(Long id);

    /**
     * 下架
     * @param id
     */
    void down(Long id);

    /**
     * 批量下架
     * @param products
     */
    void batchDown(List<Product> products);



    /**
     * 批量删除
     * @param products
     */
    void batchDelete(List<Product> products);

    PageBean<Product> queryPageSalecount(ProductQuery productQuery);

    PageBean<Product> queryPageSaleprice(ProductQuery productQuery);
}
